package com.sunstar.club.subject.common.result;

/**
 * 分页请求实体
 *
 * @Author: Shylo Sun
 * @Project: track-club
 * @Date: 2024/2/24 15:26
 */
public class PageInfo {

    private Integer pageNo = 1;

    private Integer pageSize = 20;

    public Integer getPageNo() {
        if (pageNo == null || pageNo <= 0) {
            pageNo = 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize <= 0 || pageSize > Integer.MAX_VALUE) {
            pageSize = 20;
        }
        return pageSize;
    }
}
